#ifndef WIDGET_H
#define WIDGET_H

#include "form.h"
#include <QWidget>
#include <QTcpSocket>
namespace Ui {
class Widget;
}

class Widget : public QWidget
{
    Q_OBJECT

public:
    explicit Widget(QWidget *parent = 0);
    ~Widget();
public slots:
    void show();
private slots:
    void on_pushButton_clicked();
    void recv_data();
    void connectSuccess();
private:
    Ui::Widget *ui;
    QTcpSocket *socket;//定义对象指针 没有空间
    Form *form;
};

#endif // WIDGET_H
